<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ModUploader
 *
 * @author EaDeveloper
 */
class ModUploader implements EaSoftModule {

    public $includePath = "upload/";
    public $instanceName = "ModUploader";
    public static $INSTANCE_NAME = "ModUploader";
    public static $PATH_UPLOADS;

    //put your code here
    public function getCssFiles() {
        ?>
        <link href="<?php echo RELATIVE_PATH; ?>js_v2/uploader/jquery.fileupload-ui.css" rel="stylesheet" type="text/css" />
        <?php
    }

    public function getJsFiles() {
        ?>
        <script type="text/javascript"  src="<?php echo RELATIVE_PATH; ?>js_v2/uploader/jquery.fileupload-ui.js"></script>
        <script type="text/javascript"  src="<?php echo RELATIVE_PATH; ?>js_v2/uploader/jquery.fileupload.js"></script>
        <script type="text/javascript"  src="<?php echo RELATIVE_PATH; ?>modules/upload/uploads.js"></script>
        <?php
    }

    public function getWindowTitle() {
        
    }

    public function main() {
        switch (getParam("op")) {
            case "uploader":
                include $this->includePath . "uploader.php";
                break;
            case "start":
                include $this->includePath . "upload.php";
                break;
        }
    }

}
?>
